<%
//下载APP
layout("/inc/layout.html",{
title:'经营者信息 - 工商申请 - 智慧洛龙',
keywords:'经营者信息,工商申请,智慧洛龙',
description:'经营者信息,工商申请,智慧洛龙',
style:'index.css'
}){
%>

<section class="container mt15">
    <div id="location-box">
        <div class="panel panel-info">
            <div class="panel-heading text-left"><b>个体户营业执照办理</b></div>
            <div class="panel-body">
                <form class="form-horizontal col-sm-offset-1 col-sm-9" name="memeberForm" id="memeberForm" method="post" role="form">
                    <input type="hidden" id="applyId" name="applyId" value="${applyId!}">
                    <legend>经营者信息</legend>
                    <div class="form-group">
                        <div class="col-sm-6">
                            <label class="control-label">经营者姓名：</label>
                            <input type="text" id="name" name="name" class="form-control" value="${member.name!}" placeholder="请输入经营者姓名" required="required" aria-required="true" minlength="2" maxlength="50">
                        </div>
                        <div class="col-sm-6">
                            <label class="control-label">&emsp14;</label>
                            <div style="display: block;margin-left: 20px">
                                <label class="radio-inline">
                                    <input type="radio" name="sex" id="sex1" value="1" checked>&nbsp;男&emsp; &emsp;
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="sex" id="sex2" value="2">&nbsp;女&emsp; &emsp;
                                </label>
                            </div>
                        </div>
                    </div>

                    <div class="form-group">
                        <div class="col-sm-6">
                            <label class="control-label">证件类型：</label>
                            <select class="form-control" name="cardType" id="cardType" required="required" aria-required="true">
                                <%
                                if(isNotEmpty(member)){
                                %>
                                <option value="1" ${isEmpty(member.cardType) || member.cardType== 1?"selected"}>身份证</option>
                                <option value="2" ${member.cardType== 2?"selected"}>营业执照副本</option>
                                <option value="3" ${member.cardType== 3?"selected"}>其他有效证件</option>
                                <%
                                }else{
                                %>
                                <option value="1" selected>身份证</option>
                                <option value="2">营业执照副本</option>
                                <option value="3">其他有效证件</option>
                                <%
                                }
                                %>

                            </select>
                        </div>
                        <div class="col-sm-6">
                            <label class="control-label">证件号码：</label>
                            <input type="text" name="cardNumber" id="cardNumber" class="form-control" value="${member.cardNumber!}" placeholder="请输入证件号码" required="required" aria-required="true" minlength="8" maxlength="30">
                        </div>
                    </div>


                    <div class="form-group">
                        <div class="col-sm-6">
                            <label class=" control-label">民族：</label>
                            <select class="form-control" name="nation" id="nation" required="required" aria-required="true">
                                <%
                                if(isNotEmpty(nationList)){
                                for(nation in nationList){
                                %>
                                <option value="${nation.value}">${nation.value}</option>
                                <%
                                }
                                }
                                %>
                            </select>
                        </div>
                        <div class="col-sm-6">
                            <label class="control-label">家庭住址：</label>
                            <input type="text" name="address" id="address" class="form-control" value="${member.cardNumber!}" placeholder="请输入经营者身份证住址" required="required" aria-required="true" minlength="5" maxlength="200">
                        </div>
                    </div>


                    <div class="form-group">
                        <div class="col-sm-6">
                            <label class="control-label">联系电话：</label>
                            <input type="number" name="phone" id="phone" class="form-control" value="${member.phone!}" placeholder="请输入电话" required="required" aria-required="true" minlength="8" maxlength="18">
                        </div>
                        <div class="col-sm-6">
                            <label class=" control-label">电子邮箱：</label>
                            <input type="email" name="email" id="email" class="form-control" value="${member.email!}" placeholder="请输入电子邮箱" required="required" aria-required="true">
                        </div>
                    </div>

                    <div class="form-group">
                        <div class="col-sm-6">
                            <label class=" control-label">文凭学历：</label>
                            <select class="form-control" name="education" id="education" required="required" aria-required="true">
                                <%
                                for(edu in educationList){
                                %>
                                <option value="${edu.key!}" ${edu.key== 4?'selected'}>${edu.text!}</option>
                                <%
                                }
                                %>
                            </select>
                        </div>
                        <div class="col-sm-6">
                            <label class=" control-label">政治面貌：</label>
                            <select class="form-control" name="politicsStatus" id="politicsStatus" required="required" aria-required="true">
                                <%
                                for(politics in politicsList){
                                %>
                                <option value="${politics.text!}">${politics.text!}</option>
                                <%
                                }
                                %>
                            </select>
                        </div>
                    </div>

                    <div class="form-group">
                        <div class="col-sm-6">
                            <label class="control-label">职业状态：</label>
                            <select name="workStatus" id="workStatus" class="form-control">
                                <option value="无业">无业</option>
                                <option value="在职">在职</option>
                            </select>
                        </div>
                    </div>


                    <hr />

                    <span class="text-danger upload-tips mt10"></span>
                    <div id="camera_tool_open"></div>

                    <div class="form-group">
                        <div class="col-sm-12">
                            <label for="cardFrontUploader" class="control-label">证件正面照：</label>
                            <div class="input-group">
                                <input id="cardFrontPicture" name="cardFrontPicture" value="${member.cardFrontPicture!}" class="form-control mb10" type="text" readonly placeholder="请选择..." required="required">
                                <span class="input-group-btn">
                                    <input id="cardFrontUploader" name="files" class="form-control" type="file">
                                </span>
                            </div>
                            <div id="cardFrontPictureShow" class="center-block row">
                                <% if(isNotEmpty(member.cardFrontPicture)){ %>
                                <div class="mb15 mt15">
                                    <div class="thumbnail images-box">
                                        <img src="${uploaderFilesDomain!'/'}${member.cardFrontPicture!}">
                                    </div>
                                </div>
                                <% } %>
                            </div>
                            <div id="front-error-message"></div>
                        </div>
                    </div>



                    <div class="form-group">
                        <div class="col-sm-12">
                            <label for="cardBackUploader" class="control-label">证件反面照：</label>
                            <div class="input-group">
                                <input id="cardBackPicture" name="cardBackPicture" value="${member.cardBackPicture!}" class="form-control mb10" type="text" readonly placeholder="请选择..." required="required">
                                <span class="input-group-btn">
                                    <input id="cardBackUploader" name="files" class="form-control" type="file">
                                </span>
                            </div>
                            <div id="cardBackPictureShow" class="center-block row">
                                <% if(isNotEmpty(member.cardFrontPicture)){ %>
                                <div class="mb15 mt15">
                                    <div class="thumbnail images-box">
                                        <img src="${uploaderFilesDomain!'/'}${member.cardBackPicture!}">
                                    </div>
                                </div>
                                <% } %>
                            </div>
                            <div id="Back-error-message"></div>
                        </div>
                    </div>

                    <div id="camera_tool_close"></div>

                </form>

            </div>
            <div class="panel-footer">
                <div class="col-sm-offset-3 clearfix">
                    <div class=" block col-sm-3">
                        <a href="/merchantApply/base/${applyId!}" class="btn btn-warning btn-lg btn-outline btn-block close_camera">上一步</a>
                    </div>
                    <div class=" block col-sm-3">
                        <button id="doSubmit" type="button" class="btn btn-danger btn-lg btn-outline btn-block close_camera">提交审核</button>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>
<% } %>
<script>
    require(['modules/merchant_apply'], function (apply) {
        apply.member();
    });
</script>
 <object id="view" type="application/x-eloamplugin"  name="view"  width="0"  height="0"></object>
</body>
</html>